#!/bin/bash

VERSION=$1

docker login -u admin -p 1 harbor.oldboyedu.com
docker build -t harbor.oldboyedu.com/project/yiliaoqixie:v0.${VERSION:-1} .
docker push harbor.oldboyedu.com/project/yiliaoqixie:v0.${VERSION:-1} 
docker logout harbor.oldboyedu.com

kubectl set image deploy oldboyedu-linux-yiliao yiliao=harbor.oldboyedu.com/project/yiliaoqixie:v0.${version:-1}